<B[lack]|C[olor]> stands for the mode. Only first char is recognized.
<1|2|4|8|16|32> is the video depth, an integer bit value.
<screen nb> is optional, and is an integer standing for the screen number (as returned by GetMode XFCN). If omitted, the changed screen will be the screen on which the card is. Using "*" will change all connected screens to the choosen mode.
Using "!", "?" and "=" as first parameter will return an online help (resp. copyright, syntax and output).
USING
SInce automatic video mode switching is not recommended by Apple Interface Guidelines, don't forget to restore initial mode when leaving the stack (see stack script).
ERRORS
If an error occurs, SetMode can return :
"Error : Couln't get system informations"
"Error : SetMode requires system ≥ 6.0.5"
"Error : SetMode requires Color QuickDraw"
"Error : Missing or empty parameter(s)"
"Error : Mode param must be <B|C>"
"Error : Depth not available on device X"
"Error : Couldn't set depth on device X"
"Error : Device not found"
HISTORY
1.4 02/25/94
• Fixed current screen calculation
1.3 03/04/92
• Added 16 bits support (thousands of colors)
1.2
• Fixed last minute bug
1.1
• Screen garbage fixed when switching to 8bit, thanks to Bill Steinberg.
Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses: